//auto generate
using UnityEngine;
using UnityEditor;
using ZXthex.EditorUI;

public partial class TestXWindowWindow
{
    
    private void InitComponent()
    {
        //Create Panel Panel (2)
        {
            Panel_2 = new EditorPanel();
            canvas.AddChild(Panel_2);
            Panel_2.anchoredPosition = new Vector2( -0.5999756f, -1f);
            Panel_2.sizeDelta = new Vector2( 2.399994f, -6.6f);
            Panel_2.anchorMin = new Vector2( 0.01788679f, 0.02443609f);
            Panel_2.anchorMax = new Vector2( 0.5927925f, 0.9793233f);
            Panel_2.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Panel Panel (2)/Panel
        {
            Panel = new EditorPanel();
            Panel.SetParent(Panel_2);
            Panel.anchoredPosition = new Vector2( -1.307251f, -9.143799f);
            Panel.sizeDelta = new Vector2( 3.49379f, 9.313629f);
            Panel.anchorMin = new Vector2( 0.03147208f, 0.049f);
            Panel.anchorMax = new Vector2( 0.4538072f, 0.977501f);
            Panel.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel/spacial button
        {
            spacial_button = new EditorButton("Click Me");
            spacial_button.SetParent(Panel);
            spacial_button.anchoredPosition = new Vector2( 0f, -186f);
            spacial_button.sizeDelta = new Vector2( 160f, 30f);
            spacial_button.anchorMin = new Vector2( 0.5f, 0.5f);
            spacial_button.anchorMax = new Vector2( 0.5f, 0.5f);
            spacial_button.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel/Button (1)
        {
            Button_1 = new EditorButton("Button");
            Button_1.SetParent(Panel);
            Button_1.anchoredPosition = new Vector2( 0f, -134f);
            Button_1.sizeDelta = new Vector2( 160f, 30f);
            Button_1.anchorMin = new Vector2( 0.5f, 0.5f);
            Button_1.anchorMax = new Vector2( 0.5f, 0.5f);
            Button_1.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel/Button (2)
        {
            Button_2 = new EditorButton("Button");
            Button_2.SetParent(Panel);
            Button_2.anchoredPosition = new Vector2( 0f, -85f);
            Button_2.sizeDelta = new Vector2( 160f, 30f);
            Button_2.anchorMin = new Vector2( 0.5f, 0.5f);
            Button_2.anchorMax = new Vector2( 0.5f, 0.5f);
            Button_2.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create InputField Panel (2)/Panel/InputField
        {
            InputField = new EditorInputField();
            InputField.SetParent(Panel);
            InputField.anchoredPosition = new Vector2( 0f, 0f);
            InputField.sizeDelta = new Vector2( 160f, 30f);
            InputField.anchorMin = new Vector2( 0.5f, 0.5f);
            InputField.anchorMax = new Vector2( 0.5f, 0.5f);
            InputField.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Panel Panel (2)/Panel (1)
        {
            Panel_1 = new EditorPanel();
            Panel_1.SetParent(Panel_2);
            Panel_1.anchoredPosition = new Vector2( -0.3027649f, -6.643799f);
            Panel_1.sizeDelta = new Vector2( 9.922699f, 9.313629f);
            Panel_1.anchorMin = new Vector2( 0.5441321f, 0.049f);
            Panel_1.anchorMax = new Vector2( 0.9538071f, 0.977501f);
            Panel_1.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel (1)/Button
        {
            Button = new EditorButton("Button");
            Button.SetParent(Panel_1);
            Button.anchoredPosition = new Vector2( 0f, -186f);
            Button.sizeDelta = new Vector2( 160f, 30f);
            Button.anchorMin = new Vector2( 0.5f, 0.5f);
            Button.anchorMax = new Vector2( 0.5f, 0.5f);
            Button.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel (1)/Button (1)
        {
            Button_1x = new EditorButton("Button");
            Button_1x.SetParent(Panel_1);
            Button_1x.anchoredPosition = new Vector2( 0f, -134f);
            Button_1x.sizeDelta = new Vector2( 160f, 30f);
            Button_1x.anchorMin = new Vector2( 0.5f, 0.5f);
            Button_1x.anchorMax = new Vector2( 0.5f, 0.5f);
            Button_1x.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Button Panel (2)/Panel (1)/Button (2)
        {
            Button_2x = new EditorButton("Button");
            Button_2x.SetParent(Panel_1);
            Button_2x.anchoredPosition = new Vector2( 0f, -85f);
            Button_2x.sizeDelta = new Vector2( 160f, 30f);
            Button_2x.anchorMin = new Vector2( 0.5f, 0.5f);
            Button_2x.anchorMax = new Vector2( 0.5f, 0.5f);
            Button_2x.pivot = new Vector2( 0.5f, 0.5f);
        }

        //Create Text Panel (2)/Text
        {
            Text = new EditorText("New Text");
            Text.SetParent(Panel_2);
            Text.anchoredPosition = new Vector2( -159f, 173f);
            Text.sizeDelta = new Vector2( 160f, 30f);
            Text.anchorMin = new Vector2( 0.5f, 0.5f);
            Text.anchorMax = new Vector2( 0.5f, 0.5f);
            Text.pivot = new Vector2( 0.5f, 0.5f);
        }


    }

    EditorPanel Panel_2;
    EditorPanel Panel;
    EditorButton spacial_button;
    EditorButton Button_1;
    EditorButton Button_2;
    EditorInputField InputField;
    EditorPanel Panel_1;
    EditorButton Button;
    EditorButton Button_1x;
    EditorButton Button_2x;
    EditorText Text;

}

